/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 9 May, 2025, 10:03:38 AM
    Author     : Chandan.S
*/
.aiLensRoboterrorDataClass label span{
    color: red !important;       
}
.aiLensRoboterrorDataClass label{
    display: flex;
    align-items: center;
    gap: 8px;
}
.aiLensRoboterrorDataClass label .warningIcon i{
   font-size: 16px;     
}
.agentIdHighlight {
    color: #007bff; /* Blue or any color you prefer */
    font-weight: bold;
}
.processProgressContainer {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.progressBarOuter {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progressBarInner {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    transition: width 1s linear;
}



.aiAgentSuggestionclass {
    position: absolute;
    bottom: 104%;
    left: 15%;
    background: #fff;
    width: 85%;
    box-shadow: 0 0 0 2px #ddd;
    padding: 6px;
    border-radius: 0.25rem;
    max-height: 135px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.aiAgentSuggestionclass ul {
    margin-bottom: 0;
}

.aiAgentSuggestionclass ul li:hover {
    background: #006bb8;
    border-radius: 4px;
    /* padding: 6px; */
    color: #fff;
}

.aiAgentSuggestionclass ul li {
    padding: 4px 8px;
}
.aiAgentStop #stopAiAgent {
    font-size: 14px;
    background: #0b4a99 !important;
    color: #fff !important;
    padding: 5px 8px;
    line-height: 12px;
}
.aiAgentStop #restartAiAgent {
    font-size: 14px;
    background: #0b4a99 !important;
    color: #fff !important;
    padding: 5px 8px;
    line-height: 12px;
}
.aiAgentResume #PauseAiAgent {
    font-size: 14px;
    background: #0b4a99 !important;
    color: #fff !important;
    padding: 5px 8px;
    line-height: 12px;
}
.aiAgentcontinue #continueAiAgent {
    font-size: 14px;
    background: #0b4a99 !important;
    color: #fff !important;
    padding: 5px 8px;
    line-height: 12px;
}
.aiAgentAiLensPromptMainClass{
    display:flex;
    align-items: center;
}
.agentViewProcesseddata{
    width: 100%;  
}



.fiorithemeClass .aiAgentbuttonClass button:hover{
    background-color: #007BFF !important;
    color: #fff !important;
    border: none !important; 
}

.sapUI5aiMediaIconstop,
.sapUI5aiMediaIconpause,
.sapUI5aiMediaIconresume,
.sapUI5aiMediaIconrestart {
    position: relative;
    cursor: pointer;
}

.sapUI5aiMediaIconstop::after,
.sapUI5aiMediaIconpause::after,
.sapUI5aiMediaIconresume::after,
.sapUI5aiMediaIconrestart::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 190%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0b4a99;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 12px;
  text-transform: capitalize;
}
.tooltip-arrow {
      position: absolute;
    top: -88%;
    left: 39%;
    transform: translateX(-40%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0b4a99;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    pointer-events: none;
    margin: 0;
}
.sapUI5aiMediaIconstop:hover::after,
.sapUI5aiMediaIconpause:hover::after,
.sapUI5aiMediaIconresume:hover::after,
.sapUI5aiMediaIconrestart:hover::after,
.sapUI5aiMediaIconstop:hover .tooltip-arrow,
.sapUI5aiMediaIconpause:hover .tooltip-arrow,
.sapUI5aiMediaIconresume:hover .tooltip-arrow,
.sapUI5aiMediaIconrestart:hover .tooltip-arrow{
  opacity: 1;
} 
.aicontentArea.extraHeighttoContentArea{
   height: calc(100vh - 276px) !important;
}



/*agentic workflow visualisaton*/


.node {
    position: absolute;
    width: 200px;
    height: 60px;
    background: #e6f2ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    box-shadow: 2px 2px 4px #ccc;
}

 #flowchart-container {
      position: relative;
      width: 100%;
      height: 800px;
      padding: 20px;
    }

    .flowchart-step {
      position: absolute;
      padding: 12px 16px;
      width: 200px;
      border-radius: 8px;
      text-align: center;
      font-family: Arial;
      font-size: 14px;
      border: 2px solid #007bff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .completed {
      background-color: #d4edda;
      border-color: #28a745;
    }

    .in-progress {
      background-color: #fff3cd;
      border-color: #ffc107;
    }

    .idle {
      background-color: #f8d7da;
      border-color: #dc3545;
    }
  #aiagentWorkflowId {
  position: relative;
  height: 900px;
  width: 100%;
  overflow-y: auto;
  background: #f0f2f5;
  border: 1px solid #ccc;
}

.flowchart-step {
  position: absolute;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #444;
  background: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

.flowchart-step.completed {
  background-color: #d4edda;
  border-color: #28a745;
}

.flowchart-step.in-progress {
  background-color: #fff3cd;
  border-color: #ffc107;
}

.flowchart-step.failed {
  background-color: #f8d7da;
  border-color: #dc3545;
}

.flowchart-step.idle {
  background-color: #e2e3e5;
  border-color: #6c757d;
}
  
  /*Ai Agent WorkFlow Design Starts Here */
  .aiagentWorkflowclass{ 
      background-color: #fff;
      height: 300px;
      overflow: auto;
      position: relative;
  }
  
  
  
 #aiagentWorkflowId {
    position: relative;
    height: 35%;
    width: 100%;
    overflow-y: auto;
    background: #f5f5f5;
    border: 1px solid #ccc;
}
/*
.flowchart-step {
    position: absolute;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #333;
    background: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}*/

/*.flowchart-step {
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #f0f0f0;
    padding: 12px;
    font-size: 14px;
    position: absolute;
    text-align: center;
}

.flowchart-step.completed {
    border-color: #2ecc71;
    background-color: #e0f8e9;
}

.flowchart-step.in-progress {
    border-color: #f1c40f;
    background-color: #fffbe6;
}

.flowchart-step.failed {
    border-color: #e74c3c;
    background-color: #fbeaea;
}
.flowchart-step:hover {
    transform: scale(1.05);
}*/

/*.flowchart-step {
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flowchart-step.completed {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.flowchart-step.failed {
    border-color: #f44336;
    background-color: #ffebee;
}

.flowchart-step.running {
    border-color: #ff9800;
    background-color: #fff3e0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,152,0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,152,0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,152,0, 0); }
}*/

/*.flowchart-step {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 240px;
    text-align: center;
    position: absolute;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    background-color: #f8f8f8;
}

.flowchart-step.completed {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.flowchart-step.in-progress {
    border-color: #ff9800;
    background-color: #fff3e0;
    color: #e65100;
    animation: pulse 1.5s infinite;
}

.flowchart-step.failed {
    border-color: #f44336;
    background-color: #ffebee;
    color: #b71c1c;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,152,0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,152,0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,152,0, 0); }
}*/

.flowchart-step {
    background-color: #f0f0f0;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: sans-serif;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Status styling */
.flowchart-step.completed {
    border-color: green;
    background-color: #e6ffe6;
}

.flowchart-step.failed {
    border-color: red;
    background-color: #ffe6e6;
}

.flowchart-step.in-progress {
    border-color: orange;
    background-color: #fffbe6;
}

.flowchart-step.pending {
    border-color: #aaa;
    background-color: #f0f0f0;
}

.status-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.flowchart-step.in-progress .status-icon {
    animation: spin 1.5s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flowchart-step.agentStart{
    background-color: #d0ebff; 
    border-color: #007bff;
    font-weight: bold;
} 
.flowchart-step .view-btn {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.flowchart-step .view-btn:hover {
    background-color: #0056b3;
}



.flowchart-step.in-progress {
  border: 2px dashed #007bff;
  animation: pulseBorder 1s infinite;
}

/* ⬅️ Connector Animation */
.flowchart-connector.running path {
  stroke: #007bff !important;
  stroke-width: 2;
  stroke-dasharray: 6;
  stroke-dashoffset: 0;
  animation: dashMove 1s linear infinite;
}


.running-animation {
    animation: pulseBorder 1s infinite ease-in-out;
    border: 3px solid #00bcd4 !important;
}

/* Connector line animation */
/*.running-line {
    stroke: #00bcd4 !important;
    stroke-dasharray: 5, 5;
    animation: dashmove 1s linear infinite;
}*/

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0); }
}
.running-line {
    stroke: #00bcd4 !important;
    stroke-dasharray: 6, 4;
    animation: dashmove 0.5s linear infinite;
}

@keyframes dashmove {
    0% { stroke-dashoffset: 12; }
    100% { stroke-dashoffset: 0; }
}
.dot-animation::after {
    display: inline-block;
    white-space: pre;
    content: '';
    animation: dotdotdot 1.5s steps(4, end) infinite;
    vertical-align: bottom;
}

@keyframes dotdotdot {
    0%   { content: ''; }
    20%  { content: '. '; }
    40%  { content: '..'; }
    60%  { content: '...'; }
    80%  { content: '....'; }
    100% { content: ''; }
}

.flowchart-step {
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: move;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.edit-label {
    font-size: 12px;
    color: #007bff;
    margin-top: 4px;
    cursor: pointer;
}